<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>作业管理</title>
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<link rel="stylesheet" href="${pageContext.request.contextPath }/assets/css/layui.css"  media="all">
	<link rel="stylesheet" href="${pageContext.request.contextPath }/assets/css/toastr.min.css"  media="all">
</head>
<body>

<script src="${pageContext.request.contextPath }/assets/layui.js" charset="utf-8"></script>
<script src="${pageContext.request.contextPath }/assets/layui.all.js"></script>
<script src="${pageContext.request.contextPath }/assets/js/jquery.min.js" charset="utf-8"></script>
<script src="${pageContext.request.contextPath }/assets/js/toastr.min.js" charset="utf-8"></script>
<script src="https://img.hcharts.cn/highcharts/highcharts.js"></script>
<script src="https://img.hcharts.cn/highcharts/modules/exporting.js"></script>
<script src="https://img.hcharts.cn/highcharts-plugins/highcharts-zh_CN.js"></script>

<input id="positionName" type="hidden" value="${positionName }">

<a class="layui-btn layui-btn-blue" href="javascript:history.back(-1)" style="margin: 0 0 0 10px; margin-left: 20px" data-type="reload">返回</a>
<br>
<table class="layui-hide" id="test" lay-filter="test"></table>

<script>
layui.use(['table','layer','upload','form','carousel'], function(){
	var carousel = layui.carousel;
	var table = layui.table;
	var layer = layui.layer;
    var form = layui.form;
	var laydate = layui.laydate;
	
	var positionName = $('#positionName').val();
	table.render({
	    elem: '#test'
	    ,url:'${pageContext.request.contextPath }/workMana/getWork.do'
	    ,toolbar: '#toolbarDemo'
	    ,where:{"positionName":positionName}
	    ,title: '人员报表'
	    ,id :'contenttable'
	    ,height: '650px'
    	,cols: [[
	    	//,{field:'', title:'序号', sort: true, type:'numbers', width: 60}
	      	{field:'positionName', title:'工位'}
	      	,{field:'workTime', title:'日期'}
	      	,{field:'workName', title:'操作人'}
	      	,{field:'output', title:'工作量'}
	      	,{field:'inspectionNumber', title:'报检数量'}
	      	/* ,{field:'quafiledNumber', title:'合格数量'}
	      	,{field:'scrapNumber', title:'报废数量'}
	      	,{field:'demotionNumber', title:'降级数量'}
	      	,{field:'remark01', title:'返工数量'} */
	    ]]
	    ,page: false
	});
	
});
</script>

</body>
</html>